// pages/home/home.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    indicatorDots: false,
    autoplay: true,
    interval: 3000,
    duration: 800,
    banners: ["../../assets/images/banner.jpeg"],
    keyword: "",
    sectionList: [{
      title: "小米众筹",
      goods: [{
        id: 101,
        title: "旋转儿童安全座椅",
        price: 1999,
        cover: "https://img.youpin.mi-img.com/shop-fe/9ce5332b_9530_4571_82fe_47d7aa5d11b6.jpeg",
        isSelect: false,
      },
      {
        id: 102,
        title: "电动搓澡巾洗澡刷",
        price: 149,
        cover: "https://img.youpin.mi-img.com/800_pic/be4f2ef2c4e64fcd96364bd84b2b8e8d.png",
        isSelect: false,
      }
      ]
    },
    {
      title: "生活优选",
      goods: [{
        id: 103,
        title: "旋转儿童安全座椅",
        price: 1999,
        cover: "https://img.youpin.mi-img.com/shop-fe/9ce5332b_9530_4571_82fe_47d7aa5d11b6.jpeg",
        isSelect: false,
      },
      {
        id: 104,
        title: "电动搓澡巾洗澡刷",
        price: 149,
        cover: "https://img.youpin.mi-img.com/800_pic/be4f2ef2c4e64fcd96364bd84b2b8e8d.png",
        isSelect: false,
      }
      ]
    }
    ],
    goods: [{
      id: 2,
      title: "Redmi Note12 ",
      cover: "https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1666797624.80788381.png",
      price: 1199,
      intro: "三星 OLED 护眼屏｜骁龙 5G 芯｜5000mAh 电量",
      isSelect: false,
    },
    {
      id: 3,
      title: "Redmi Note12 Pro ",
      cover: "https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1666798004.73859024.png",
      price: 1699,
      intro: " IMX766 防抖相机｜OLED 柔性直屏｜67W 闪充",
      isSelect: false,
    },
    {
      id: 4,
      title: "Redmi Note12 Pro+",
      cover: "https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1666797744.54085396.png",
      price: 2099,
      intro: "2亿超清防抖相机｜OLED 柔性直屏",
      isSelect: false,
    },
    {
      id: 5,
      title: "Redmi Note11",
      cover: "https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1663832679.2515046.jpg",
      price: 1099,
      intro: "5000mAh大电量",
      isSelect: false,
    },
    {
      id: 6,
      title: "Redmi K50",
      cover: "https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1647430877.23348470.png",
      price: 2299,
      intro: "2K直屏的狠旗舰",
      isSelect: false,
    },
    {
      id: 7,
      title: "Redmi Note11T Pro",
      cover: "https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1667555442.44922504.jpg",
      price: 1569,
      intro: "天玑8100｜真旗舰芯",
      isSelect: false,
    },
    {
      id: 8,
      title: "Xiaomi 12S Pro",
      cover: "https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1656916272.35595122.png",
      price: 4399,
      intro: "骁龙8+ 旗舰处理器 | 徕卡影像",
      isSelect: false,
    },
    {
      id: 9,
      title: "Redmi K50 至尊版",
      cover: "https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1660117297.65076315.png",
      price: 2999,
      intro: "骁龙8+ ｜1.5K 高清直屏",
      isSelect: false,
    }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})